__________________________________________________________________________________________________
import datetime as dt

class Solution:
    def dayOfYear(self, date: str) -> int:
        return dt.date(*[
            int(i) for i in date.split('-')
        ]).timetuple().tm_yday
__________________________________________________________________________________________________

__________________________________________________________________________________________________
